const { defineConfig } = require('@vue/cli-service')<% if (data.importMethod === 'needed') { %>
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')<% } %>
module.exports = defineConfig({
  publicPath: process.env.VUE_APP_BUILD_MODE === 'static' ? './' : '/',
  transpileDependencies: true,
  devServer: {
    port: 8081,
    client: false
  },
  productionSourceMap: process.env.NODE_ENV !== 'production'<% if (data.importMethod === 'needed') { %>,
  configureWebpack: {
    plugins: [
      AutoImport({
        resolvers: [ElementPlusResolver()]
      }),
      Components({
        resolvers: [ElementPlusResolver()]
      })
    ]
  }<% } %>
})
